/**
 * 
 */
package algorithme;

import programme.Programme;
import programme.Solution;

/**
 * @author port
 *
 */
public abstract class RelaxationLineraire extends Algorithme<Programme> {

	/* (non-Javadoc)
	 * @see algorithme.Algorithme#lancer()
	 */
	@Override
	public Solution lancer() throws Exception {
		
		relacher();
		
		Solution s;
		
		s = solver.resoudre(prog);
		
		return discretiser(s);
		
	}
	
	protected abstract void relacher();
	
	protected abstract Solution discretiser(Solution s); 

}
